package org.blackcat.domain;

import com.fasterxml.jackson.annotation.JsonInclude;
import org.blackcat.core.annotation.Size;

import java.util.Date;

/**
 * @author 詹泽
 * @date 2017/2/22
 */
@JsonInclude(JsonInclude.Include.NON_NULL)
public class Temperature {

    private String id;

    private String userId;

    @Size(min = 35,max = 42)
    private Double size;

    private Date gmtCreate;

    private Date gmtModified;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public Double getSize() {
        return size;
    }

    public void setSize(Double size) {
        this.size = size;
    }

    public Date getGmtCreate() {
        return gmtCreate;
    }

    public void setGmtCreate(Date gmtCreate) {
        this.gmtCreate = gmtCreate;
    }

    public Date getGmtModified() {
        return gmtModified;
    }

    public void setGmtModified(Date gmtModified) {
        this.gmtModified = gmtModified;
    }

    @Override
    public String toString() {
        return "TemperatureController{" +
                "id='" + id + '\'' +
                ", userId='" + userId + '\'' +
                ", size=" + size +
                ", gmtCreate=" + gmtCreate +
                ", gmtModified=" + gmtModified +
                '}';
    }
}
